package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"pet_management/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/register", &controllers.PetControllers{}, "Post:Register")
	beego.Router("/login", &controllers.PetControllers{}, "Post:Login")
	beego.Router("/cate/add", &controllers.PetControllers{}, "Post:CateAdd")
	beego.Router("/pet/add", &controllers.PetControllers{}, "Post:PetAdd")
	beego.Router("/pet/list", &controllers.PetControllers{}, "Post:PetList")
	beego.Router("/pet/info", &controllers.PetControllers{}, "Post:PetInfo")
	beego.Router("/pet/del", &controllers.PetControllers{}, "Post:Del")
}
